package com.derbysoft.lowcostadapter.commons.repository.impl;

import com.derbysoft.lowcostadapter.commons.model.Channel;
import com.derbysoft.lowcostadapter.commons.repository.ChannelRepository;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Repository;

/**
 * User: jason
 * Date: 2012-11-15
 */
@Repository("channelRepository")
public class ChannelRepositoryImpl extends CommonService<Channel> implements ChannelRepository {
    @Override
    public Channel load(String channelCode) {
        return load("channelCode", StringUtils.upperCase(channelCode));
    }
}
